package cn.yunbamboos.rest.service.anno;

import cn.yunbamboos.rest.service.dto.in.BaseInDTO;
import cn.yunbamboos.rest.service.dto.in.DefaultInDTO;
import cn.yunbamboos.rest.service.dto.out.BaseOutDTO;
import cn.yunbamboos.rest.service.dto.out.DefaultOutDTO;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RestServiceDTO {

    Class<? extends BaseInDTO> in() default DefaultInDTO.class;

    Class<? extends BaseOutDTO> out() default DefaultOutDTO.class;

}
